package com.example.videoweb.dao;

import com.example.videoweb.domain.Consumer;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsumerMapper {
    public int insert(Consumer consumer);//添加用户
    public int update(Consumer consumer);//更新信息
    public int delete(Integer id);       //删除用户
    public Consumer selectByPrimaryKey(Integer id);//通过id查找用户
    public Consumer selectByPrimaryKey2(Integer id);//通过id查找用户(带密码
    public List<Consumer> allConsumer();    //查询所有用户
    public List<Consumer> allConsumer2();    //查询所有用户(带密码
    public int verifyPassword(String username,String password);  //验证密码
    public Consumer getByUsername(String username);   //通过用户名查询用户
}
